package com.yamed.order.web;

import com.alibaba.fastjson.JSONObject;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author: wchen
 * @Description:
 * @Date: Created in 2019-08-28 13:49
 * Copyright 本内容仅限于杭州阿拉丁信息科技股份有限公司内部传阅，禁止外泄以及用于其他的商业目的
 */
@RestController
@RequestMapping("/order/")
public class OrderController {
    private final Logger logger = LoggerFactory.getLogger(this.getClass());

    @GetMapping("{orderNo}")
    public String getOrderInfo(@PathVariable String orderNo){

        return orderNo;
    }

    @GetMapping("countAllOrder/{userId}")
    public Integer countAllOrder(@PathVariable Long userId){

        return 10001;
    }
}
